package com.jx.driving.request;

import java.util.List;

import com.jx.driving.message.TimeTerminalRequestMessage;
import com.jx.driving.protocol.terminal.annotation.LimitedListAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;
import com.jx.driving.request.domain.Word;

/**
 * 补传分包请求命令
 * 
 * @author wuxiaozeng
 *
 */
@TerminalAnnotation
public class Terminal0x8003Request extends TimeTerminalRequestMessage {

	@WordAnnotation(order = 1)
	private int originalSeq;// 原始消息流水号

	@LimitedListAnnotation(order = 2)
	private List<Word> idList;// 重传包 ID 列表

	public int getOriginalSeq() {
		return originalSeq;
	}

	public void setOriginalSeq(int originalSeq) {
		this.originalSeq = originalSeq;
	}

	public List<Word> getIdList() {
		return idList;
	}

	public void setIdList(List<Word> idList) {
		this.idList = idList;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8003Request [originalSeq=").append(originalSeq).append(", idList=").append(idList)
				.append("]");
		return builder.toString();
	}

}
